package com.zte.shopping.service;

import com.zte.shopping.entity.Attache;
import org.apache.commons.fileupload.FileUploadException;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface AttacheService {

    /**
     * @Author zuti
     * @Description //TODO 修改头像
     * @Date 10:26 2020/7/1
     * @Param [file, session]
     * @return void
     **/
    void modifyHeadImage(CommonsMultipartFile file, HttpSession session) throws FileUploadException;

    void addAttache(Attache attache);

    Attache findHeadImageByUserId(HttpSession session);

    List<Attache> findLifeImageByUserId(HttpSession session);

    void deleteImg(String imgPath, Integer userId);
}
